package com.sanmubird.mywebframework.eventbus.core;

public class MqMessage<T> {

    private final String routingKey;
    private final T data;

    public MqMessage(String routingKey, T data) {
        this.routingKey = routingKey;
        this.data = data;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public T getData() {
        return data;
    }

}
